/* 弹窗遮罩层 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 显示弹窗 */
.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* 弹窗内容 */
.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 弹窗头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

/* 关闭按钮 */
.close-btn {
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #fff;
    background-color: #ff4444;
    transform: rotate(90deg);
}

/* 弹窗主体内容 */
.modal-body {
    padding: 20px;
    line-height: 1.6;
    color: #666;
}

/* 弹窗底部 */
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn.primary {
    background-color: #4285f4;
    color: white;
}

.btn.primary:hover {
    background-color: #3367d6;
}

.btn.secondary {
    background-color: #f1f3f4;
    color: #5f6368;
}

.btn.secondary:hover {
    background-color: #e8eaed;
}

/* 触发按钮 */
.trigger-btn {
    padding: 12px 24px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px;
}

.trigger-btn:hover {
    background-color: #3367d6;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 12px 15px;
    }
}